package com.aizuda.boot.modules.business.template.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("template_default_field_detail")
@Schema(description= "模板默认字段详情实体")
public class TemplateDefaultFieldDetailEntity {

    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description ="主键ID")
    private Long id;

    @Schema(description ="模板ID，关联模板表")
    private Integer templateId;

    @Schema(description ="默认字段id（关联contract_field表）")
    private Long fieldId;

    @Schema(description ="使用次数")
    private Integer usageCount;

    @Schema(description ="排序字段，值越小越靠前")
    private Integer sortOrder;

    @Schema(description ="是否支持默认值（0-否，1-是）")
    private Boolean supportDefaultValue;

    @Schema(description ="默认值")
    private String defaultValue;

    @Schema(description ="是否支持对方填写（0-否，1-是）")
    private Boolean supportCounterpartyInput;

    @Schema(description ="创建时间")
    private Timestamp createdAt;

    @Schema(description ="更新时间")
    private Timestamp updatedAt;
} 